package main

import "fmt"

type Student struct {
	id   int
	name string
	sex  byte
	age  int
	addr string
}

func test(s Student) {
	s.id = 889
	fmt.Println("test:", s)
}
func test2(p *Student) {

	p.name = "lily"

}

func main() {
	s := Student(2, "hellen", 'f', 29, "杭州")
	test(s)
	test2(&s)
	fmt.Println("main:", s)
}
